<?php

header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:POST,GET,PUT,DELETE');
header('Access-Control-Allow-Headers:x-requested-with,Content-Type,X-CSRF-Token');



$mysqli = new Mysqli("localhost", "root", "root", "db_jiuji");


if ($mysqli->connect_errno) {
    die();
}

$sql = "select * from t_info limit 40,15";

$result = $mysqli->query($sql);

while ($row = $result->fetch_assoc()) {
    $data[] = $row;
}

print_r(json_encode($data)); 